package com.iot.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.iot.common.annotation.Excel;
import com.iot.common.core.domain.BaseEntity;

/**
 * 【请填写功能名称】对象 device_relation
 * 
 * @author iot
 * @date 2025-01-03
 */
public class DeviceRelation extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 主设备id */
    @Excel(name = "主设备id")
    private Long mainDevice;

    /** 子设备id */
    @Excel(name = "子设备id")
    private Long subDevice;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setMainDevice(Long mainDevice) 
    {
        this.mainDevice = mainDevice;
    }

    public Long getMainDevice() 
    {
        return mainDevice;
    }
    public void setSubDevice(Long subDevice) 
    {
        this.subDevice = subDevice;
    }

    public Long getSubDevice() 
    {
        return subDevice;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("mainDevice", getMainDevice())
            .append("subDevice", getSubDevice())
            .toString();
    }
}
